package com.xyzq.service.ya.impl;

import java.util.Date;
import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;

import com.xyzq.dao.ya.AccountDayMoneyDAO;
import com.xyzq.model.ya.data.Account;
import com.xyzq.model.ya.data.AccountDayMoney;
import com.xyzq.service.ya.AccountDayMoneyManager;

public class AccountDayMoneyManagerImpl extends
		GenericManagerImpl<AccountDayMoney, Long> implements
		AccountDayMoneyManager {
	private AccountDayMoneyDAO accountDayMoneyDao;

	public AccountDayMoneyManagerImpl(AccountDayMoneyDAO accountDayMoneyDao) {
		super(accountDayMoneyDao);
		this.setAccountDayMoneyDao(accountDayMoneyDao);
	}

	public void setAccountDayMoneyDao(AccountDayMoneyDAO accountDayMoneyDao) {
		this.accountDayMoneyDao = accountDayMoneyDao;
	}

	public AccountDayMoneyDAO getAccountDayMoneyDao() {
		return accountDayMoneyDao;
	}

	public List<AccountDayMoney> findWithValueDay(Date valueDay) {
		// TODO Auto-generated method stub
		return this.accountDayMoneyDao.findWithValueDate(valueDay);
	}

	public List<AccountDayMoney> findWithValueDay(Date valueDay, Account account) {
		// TODO Auto-generated method stub
		return this.accountDayMoneyDao.findWithValueDate(valueDay, account);
	}

}
